package ModelLayer;

public class Product {
	
	private int productId;
	private String name;
	private double purchasePrice;
	private double salesPrice;
	private double rentPrice;
	private String countryOfOrigin;
	private Range ran;
	private String description;
	private Supplier sup;
	
	public Product()
	{
		
	}
	
	public Product(int productId, String name, double purchasePrice, double salesPrice, double rentPrice, String countryOfOrigin, int range, String description, int supplier)
	{
		this.productId = productId;
		this.name = name;
		this.purchasePrice = purchasePrice;
		this.salesPrice = salesPrice;
		this.rentPrice = rentPrice;
		this.countryOfOrigin = countryOfOrigin;
		this.ran = new Range(range);
		//this.setRange(ran);
		System.out.println("Product - new Range(range); "+ ran);
		this.description = description;
		this.sup = new Supplier(supplier);
		System.out.println("Product - new Supplier(supplier); "+sup);
		
		//this.setSupplier(supObj);
		//this.setRange(ranObj);
		
	}
	
/*	public Product(int productId, String name, double purchasePrice, double salesPrice, double rentPrice, String countryOfOrigin, Range range, String description, Supplier supplier)
	{
		this.productId = productId;
		this.name = name;
		this.purchasePrice = purchasePrice;
		this.salesPrice = salesPrice;
		this.rentPrice = rentPrice;
		this.countryOfOrigin = countryOfOrigin;
		this.range = range;
		this.description = description;
		this.supplier = supplier; 
	}*/


	/**
	 * @return the productId
	 */
	public int getProductId() {
		return productId;
	}


	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}


	/**
	 * @return the purchasePrice
	 */
	public double getPurchasePrice() {
		return purchasePrice;
	}


	/**
	 * @return the salesPrice
	 */
	public double getSalesPrice() {
		return salesPrice;
	}


	/**
	 * @return the rentPrice
	 */
	public double getRentPrice() {
		return rentPrice;
	}


	/**
	 * @return the countryOfOrigin
	 */
	public String getCountryOfOrigin() {
		return countryOfOrigin;
	}


	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}


	/**
	 * @return the supplier
	 */
	public Supplier getSupplier() {
		return sup;
	}


	/**
	 * @param productId the productId to set
	 */
	public void setProductId(int productId) {
		this.productId = productId;
	}


	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}


	/**
	 * @param purchasePrice the purchasePrice to set
	 */
	public void setPurchasePrice(double purchasePrice) {
		this.purchasePrice = purchasePrice;
	}


	/**
	 * @param salesPrice the salesPrice to set
	 */
	public void setSalesPrice(double salesPrice) {
		this.salesPrice = salesPrice;
	}


	/**
	 * @param rentPrice the rentPrice to set
	 */
	public void setRentPrice(double rentPrice) {
		this.rentPrice = rentPrice;
	}


	/**
	 * @param countryOfOrigin the countryOfOrigin to set
	 */
	public void setCountryOfOrigin(String countryOfOrigin) {
		this.countryOfOrigin = countryOfOrigin;
	}


	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}


	/**
	 * @param supplier the supplier to set
	 */
	public void setSupplier(Supplier supplier) {
		this.sup = supplier;
	}


	public Range getRange() {
		return ran;
	}


	public void setRange(Range range) {
		this.ran = range;
	}

}
